home *** CD-ROM | disk | FTP | other *** search
- { WinSock interface file to be included the interface section
- of a Delphi unit. }
-
- function accept (s : TSock; addr : PSockaddr; addrlen : PInteger) : TSock;
- function bind (s : TSock; addr : Psockaddr; namelen : integer) : integer;
- function closesocket (s : TSock) : integer;
- function connect (s : TSock; name : Psockaddr; namelen : integer) : integer;
- function ioctlsocket (s : TSock; cmd : longint; argp : u_long) : integer;
- function getpeername (s : TSock; name : Psockaddr; namelen : Pinteger) : integer;
- function getsockname (s : TSock; name : Psockaddr; namelen : Pinteger) : integer;
- function getsockopt (s : TSock; level, optname : integer; optval : PChar; optlen : integer) : integer;
- function htonl (hostlong : u_long) : u_long;
- function htons (hostshort : u_short) : u_short;
- function inet_addr (cp : PChar) : u_long; {PIn_Addr;} { in_addr }
- function inet_ntoa (inaddr : in_addr) : PChar;
- function listen (s : TSock; backlog : integer) : integer;
- function ntohl (netlong : u_long) : u_long;
- function ntohs (netshort : u_short) : u_short;
- function recv (s : TSock; buf : PChar; len, flags : integer) : integer;
- function recvfrom (s : TSock; buf : PChar; len, flags : integer; from : sockaddr; fromlen : integer) : integer;
- function select (nfds : integer; readfds, writefds, exceptfds : fd_set; timeout : timeval) : longint;
- function send (s : TSock; buf : PChar; len, flags : integer) : integer;
- function sendto (s : TSock; buf : PChar; len, flags : integer; addrto : sockaddr; tolen : integer) : integer;
- function setsockopt (s : TSock; level, optname : integer; optval : PChar; optlen : integer) : integer;
- function shutdown (s : TSock; how : integer) : integer;
- function socket (af, struct, protocol : integer) : TSock;
- function gethostbyaddr (addr : PChar; len, struct : integer) : PHostEnt; { hostent }
- function gethostbyname (name : PChar) : PHostEnt; { hostent }
- function gethostname (name : PChar; len : integer) : integer;
- function getservbyport (port : integer; proto : PChar) : PServEnt; { servent }
- function getservbyname (name, proto : PChar) : PServEnt; { servent }
- function getprotobynumber (proto : integer) : PProtoEnt; { protoent }
- function getprotobyname (name : PChar) : PProtoEnt; { protoent }
- function WSAStartup (wVersionRequired : word; lpWSData : LPWSADATA) : integer;
- function WSACleanup : integer;
- procedure WSASetLastError (iError : integer);
- function WSAGetLastError : integer;
- function WSAIsBlocking : BOOL;
- function WSAUnhookBlockingHook : integer;
- function WSASetBlockingHook (lpBlockFunc : TFarProc) : TFarProc;
- function WSACancelBlockingCall : integer;
- function WSAAsyncGetServByName (HWindow : HWND; wMsg : u_int; name, proto, buf : PChar; buflen : integer) : THandle;
- function WSAAsyncGetServByPort ( HWindow : HWND; wMsg, port : u_int; proto, buf : PChar; buflen : integer) : THandle;
- function WSAAsyncGetProtoByName (HWindow : HWND; wMsg : u_int; name, buf : PChar; buflen : integer) : THandle;
- function WSAAsyncGetProtoByNumber (HWindow : HWND; wMsg : u_int; number : integer;
- buf : PChar; buflen : integer) : THandle;
- function WSAAsyncGetHostByName (HWindow : HWND; wMsg : u_int; name, buf : PChar; buflen : integer) : THandle;
- function WSAAsyncGetHostByAddr (HWindow : HWND; wMsg : u_int; addr : PChar; len, struct : integer;
- buf : PChar; buflen : integer) : THandle;
- function WSACancelAsyncRequest (hAsyncTaskHandle : THandle) : integer;
- function WSAAsyncSelect (s : TSock; HWindow : HWND; wMsg : u_int; lEvent : longint) : integer;
-
-
- function WSAMakeSyncReply (Buflen, Error : Word) : LongInt;
- function WSAMakeSelectReply (Event, Error : Word) : LongInt;
- function WSAGetAsyncBuflen (Param : LongInt) : Word;
- function WSAGetAsyncError (Param : LongInt) : Word;
- function WSAGetSelectEvent (Param : LongInt) : Word;
- function WSAGetSelectError (Param : LongInt) : Word;
-